package com.hsbc.dev.teamo4.sms.sm.service.impl;

import com.hsbc.dev.teamo4.sms.sm.dao.IRoleMenuPermissionDao;
import com.hsbc.dev.teamo4.sms.sm.dao.impl.RoleMenuPermissionDaoImpl;
import com.hsbc.dev.teamo4.sms.sm.po.Permission;
import com.hsbc.dev.teamo4.sms.sm.po.RoleMenuPermission;
import com.hsbc.dev.teamo4.sms.sm.service.IPermissionService;
import com.hsbc.dev.teamo4.sms.sm.service.IRoleMenuPermissionService;
import com.hsbc.dev.teamo4.sms.sm.service.IRoleService;

import java.util.List;

/**
 * @author:Kevin
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.service.impl
 * @Description:
 * @Date date: 2018/7/27
 */
public class RoleMenuPermissionServiceImpl implements IRoleMenuPermissionService{

    private IRoleMenuPermissionDao iRoleMenuPermissionDao=new RoleMenuPermissionDaoImpl();

    @Override
    public RoleMenuPermission save(RoleMenuPermission roleMenuPermission) {
        return iRoleMenuPermissionDao.saveEntity(roleMenuPermission);
    }

    @Override
    public RoleMenuPermission update(RoleMenuPermission roleMenuPermission) {
        return iRoleMenuPermissionDao.updateEntity(roleMenuPermission);
    }

    @Override
    public RoleMenuPermission queryById(String id) {
        return iRoleMenuPermissionDao.queryById(id);
    }

    @Override
    public List<RoleMenuPermission> queryEntityList() {
        return iRoleMenuPermissionDao.queryAllEntity();
    }

    @Override
    public int updateByIsEnable(String id, Boolean bool) {
        return iRoleMenuPermissionDao.updateByIsEnable(id,bool);
    }


}
